package com.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * 人体红外传感器
 */
@Data
@TableName("infrared_sensor")
public class InfraredSensor {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("sensor_id")
    private String sensorId;

    //人员活动 0无活动 1有活动
    @TableField("motion_detected")
    private int MotionDetected;

    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
